package com.cn.spjdbc.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cn.spjdbc.dao.UserTokenDao;

@Service
public class UserTokenService {
	@Autowired
	private UserTokenDao dao;
	@Transactional
	public int insert(){
		int i= dao.save();
		if(i>0){
			throw new RuntimeException();
		}
		return i;
	}
}
